import type { IRegisterParams } from "@/types/register";
import { http } from "@/utils/request";


/**
 * @description 获取注册验证码
 * @param IRegisterParams  phone 手机号
 * @returns 
 */
export const reqSendCode = (phone:string)=>{
  return http(`/api/user/passport/sendCode/${phone}`,'GET')
}


/**
 * @description 获取用户注册数据
 * @param IRegisterParams  phone 手机号 password 密码  code 验证码
 * @returns 
 */
export const reqRegister = (param:IRegisterParams)=>{
  return http('/api/user/passport/register','POST',param)
}